package com.fourth.shopping.dao;

import com.fourth.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AddressMapper {

    List<Address> getAddress(String userId);

    List<Address> queryByLimit(@Param("address") Address address);

    void insert(@Param("address") Address address);

    Address getAddressById(@Param("addressId")Integer addressId);

    List<Address> getCurrentOrderAddresses(@Param("orderNo") String orderNo);

    void update(@Param("address") Address address);
}